package com.neu.carbon.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.neu.common.annotation.Excel;
import com.neu.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 生产采样单对象 mes_process_check
 * 
 * @author neuedu
 * @date 2024-09-11
 */
@ApiModel("生产采样单")
public class MesProcessCheck extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @ApiModelProperty("编号")
    @Excel(name = "编号")
    private Long id;

    /** 流水号 */
    @ApiModelProperty("流水号")
    @Excel(name = "流水号")
    private String serialNo;

    /** 计划编号 */
    @ApiModelProperty("计划编号")
    @Excel(name = "计划编号")
    private Long productPlanId;
    private String productPlanName;


    /** 计划排产编号 */
    @ApiModelProperty("计划排产编号")
    private Long productScheduleId;

    /** 生产线编号 */
    @ApiModelProperty("生产线编号")
    private Long productLineId;

    public String getProductPlanName() {
        return productPlanName;
    }

    public void setProductPlanName(String productPlanName) {
        this.productPlanName = productPlanName;
    }

    public String getProductJobName() {
        return productJobName;
    }

    public void setProductJobName(String productJobName) {
        this.productJobName = productJobName;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getSpecification() {
        return Specification;
    }

    public void setSpecification(String specification) {
        Specification = specification;
    }

    public String getUnit() {
        return Unit;
    }

    public void setUnit(String unit) {
        Unit = unit;
    }

    /** 作业名称 */
    @ApiModelProperty("作业名称")
    @Excel(name = "作业名称")
    private Long productJobId;
    private String productJobName;


    /** 物料名称 */
    @ApiModelProperty("物料名称")
    @Excel(name = "物料名称")
    private Long materialId;
    private String materialName;
    private String model;
    private String Specification;
    private String Unit;

    /** 检验标准 */
    @ApiModelProperty("检验标准")
    @Excel(name = "检验标准")
    private Long checkStandardId;

    public String getCheckStandardName() {
        return checkStandardName;
    }

    public void setCheckStandardName(String checkStandardName) {
        this.checkStandardName = checkStandardName;
    }

    private String checkStandardName;

    /** 生产数量 */
    @ApiModelProperty("生产数量")
    @Excel(name = "生产数量")
    private Long productQuantity;

    /** 采样数量 */
    @ApiModelProperty("采样数量")
    @Excel(name = "采样数量")
    private Long checkQuantity;

    /** 检验值 */
    @ApiModelProperty("检验值")
    @Excel(name = "检验值")
    private double checkValue;

    /** 阈值上限 */
    @ApiModelProperty("阈值上限")
    @Excel(name = "阈值上限")
    private double maxValue;

    /** 阈值下限 */
    @ApiModelProperty("阈值下限")
    @Excel(name = "阈值下限")
    private double minValue;

    /** 检验结果 */
    @ApiModelProperty("检验结果")
    @Excel(name = "检验结果")
    private String checkResult;

    /** 检验人 */
    @ApiModelProperty("检验人")
    @Excel(name = "检验人")
    private String checkUser;

    public String getCheckUserName() {
        return checkUserName;
    }

    public void setCheckUserName(String checkUserName) {
        this.checkUserName = checkUserName;
    }

    private String checkUserName;

    /** 检验时间 */
    @ApiModelProperty(value="检验时间",example = "2021-09-10")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSerialNo(String serialNo) 
    {
        this.serialNo = serialNo;
    }

    public String getSerialNo() 
    {
        return serialNo;
    }
    public void setProductPlanId(Long productPlanId) 
    {
        this.productPlanId = productPlanId;
    }

    public Long getProductPlanId() 
    {
        return productPlanId;
    }
    public void setProductScheduleId(Long productScheduleId) 
    {
        this.productScheduleId = productScheduleId;
    }

    public Long getProductScheduleId() 
    {
        return productScheduleId;
    }
    public void setProductLineId(Long productLineId) 
    {
        this.productLineId = productLineId;
    }

    public Long getProductLineId() 
    {
        return productLineId;
    }
    public void setProductJobId(Long productJobId) 
    {
        this.productJobId = productJobId;
    }

    public Long getProductJobId() 
    {
        return productJobId;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setCheckStandardId(Long checkStandardId) 
    {
        this.checkStandardId = checkStandardId;
    }

    public Long getCheckStandardId() 
    {
        return checkStandardId;
    }
    public void setProductQuantity(Long productQuantity) 
    {
        this.productQuantity = productQuantity;
    }

    public Long getProductQuantity() 
    {
        return productQuantity;
    }
    public void setCheckQuantity(Long checkQuantity) 
    {
        this.checkQuantity = checkQuantity;
    }

    public Long getCheckQuantity() 
    {
        return checkQuantity;
    }
    public void setCheckValue(double checkValue)
    {
        this.checkValue = checkValue;
    }

    public double getCheckValue()
    {
        return checkValue;
    }
    public void setMaxValue(double maxValue)
    {
        this.maxValue = maxValue;
    }

    public double getMaxValue()
    {
        return maxValue;
    }
    public void setMinValue(double minValue)
    {
        this.minValue = minValue;
    }

    public double getMinValue()
    {
        return minValue;
    }
    public void setCheckResult(String checkResult) 
    {
        this.checkResult = checkResult;
    }

    public String getCheckResult() 
    {
        return checkResult;
    }
    public void setCheckUser(String checkUser) 
    {
        this.checkUser = checkUser;
    }

    public String getCheckUser() 
    {
        return checkUser;
    }
    public void setCheckDate(Date checkDate) 
    {
        this.checkDate = checkDate;
    }

    public Date getCheckDate() 
    {
        return checkDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serialNo", getSerialNo())
            .append("productPlanId", getProductPlanId())
            .append("productScheduleId", getProductScheduleId())
            .append("productLineId", getProductLineId())
            .append("productJobId", getProductJobId())
            .append("materialId", getMaterialId())
            .append("checkStandardId", getCheckStandardId())
            .append("productQuantity", getProductQuantity())
            .append("checkQuantity", getCheckQuantity())
            .append("checkValue", getCheckValue())
            .append("maxValue", getMaxValue())
            .append("minValue", getMinValue())
            .append("checkResult", getCheckResult())
            .append("checkUser", getCheckUser())
            .append("checkDate", getCheckDate())
            .append("remark", getRemark())
            .toString();
    }
}
